package com.cos.service.api;

import com.cos.entity.GoodsTypes;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@FeignClient(name = "goods" )
public interface HomeService {

    @RequestMapping("/goodsType/getList")
    @ResponseBody
    public List<GoodsTypes> getList();

    @RequestMapping("/goodsType/addGoodsType")
    @ResponseBody
    public boolean addGoodsType(@RequestBody GoodsTypes goodsTypes);

    @RequestMapping("/goodsType/updateGoodsType")
    @ResponseBody
    public boolean updateGoodsType(@RequestBody GoodsTypes goodsTypes);

    @RequestMapping("/goodsType/deleteById")
    @ResponseBody
    public boolean deleteById(@RequestBody Integer id);

    @RequestMapping("/goodsType/getGoodsListByPid")
    @ResponseBody
    public List<GoodsTypes> getGoodsListByPid(@RequestBody Integer id);

}
